/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

import java.sql.Date;
import java.util.Iterator;
import java.util.List;
import vo.rb_product;
import vo.rb_purchase;
import vo.rb_raw_mat_stock;

/**
 *
 * @author subin
 */
public class MasterController {
    
    public MasterController getInstance(){
        return new MasterController();
    }
    
    public List purchaseRawMaterials(rb_purchase[] purchaseArray){
       //insert into rb_purchase table
       //update raw materials stock
       //enter into expence table
       RawMaterialController rawMatController = RawMaterialController.getInstance();
       List currentStockStatus = rawMatController.updateRawStock(purchaseArray);
       return null;
    }
    
     public String ManufactureProduct(String prodId,int quantity,Date date){
         rb_product manufacturedProduct = ProductController.getInstance().fetch(prodId);
         if(manufacturedProduct != null){
             
         }
         return null;
     }
}
